FROM golang:1.16-alpine AS build

COPY . /go/src/project
RUN go build -o /bin/project

FROM scratch
COPY --from=build /bin/project /bin/project
ENTRYPOINT ["/bin/project"]